package com.ruoyi.contract.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.contract.mapper.ExpirationReminderSetupMapper;
import com.ruoyi.contract.domain.ExpirationReminderSetup;
import com.ruoyi.contract.service.IExpirationReminderSetupService;

/**
 * 合同到期提醒设置Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-18
 */
@Service
public class ExpirationReminderSetupServiceImpl implements IExpirationReminderSetupService 
{
    @Autowired
    private ExpirationReminderSetupMapper expirationReminderSetupMapper;

    /**
     * 查询合同到期提醒设置
     * 
     * @param expirationReminderSetupId 合同到期提醒设置主键
     * @return 合同到期提醒设置
     */
    @Override
    public ExpirationReminderSetup selectExpirationReminderSetupByExpirationReminderSetupId(Long expirationReminderSetupId)
    {
        return expirationReminderSetupMapper.selectExpirationReminderSetupByExpirationReminderSetupId(expirationReminderSetupId);
    }

    /**
     * 查询合同到期提醒设置列表
     * 
     * @param expirationReminderSetup 合同到期提醒设置
     * @return 合同到期提醒设置
     */
    @Override
    public List<ExpirationReminderSetup> selectExpirationReminderSetupList(ExpirationReminderSetup expirationReminderSetup)
    {
        return expirationReminderSetupMapper.selectExpirationReminderSetupList(expirationReminderSetup);
    }

    /**
     * 新增合同到期提醒设置
     * 
     * @param expirationReminderSetup 合同到期提醒设置
     * @return 结果
     */
    @Override
    public int insertExpirationReminderSetup(ExpirationReminderSetup expirationReminderSetup)
    {
        return expirationReminderSetupMapper.insertExpirationReminderSetup(expirationReminderSetup);
    }

    /**
     * 修改合同到期提醒设置
     * 
     * @param expirationReminderSetup 合同到期提醒设置
     * @return 结果
     */
    @Override
    public int updateExpirationReminderSetup(ExpirationReminderSetup expirationReminderSetup)
    {
        return expirationReminderSetupMapper.updateExpirationReminderSetup(expirationReminderSetup);
    }

    /**
     * 批量删除合同到期提醒设置
     * 
     * @param expirationReminderSetupIds 需要删除的合同到期提醒设置主键
     * @return 结果
     */
    @Override
    public int deleteExpirationReminderSetupByExpirationReminderSetupIds(Long[] expirationReminderSetupIds)
    {
        return expirationReminderSetupMapper.deleteExpirationReminderSetupByExpirationReminderSetupIds(expirationReminderSetupIds);
    }

    /**
     * 删除合同到期提醒设置信息
     * 
     * @param expirationReminderSetupId 合同到期提醒设置主键
     * @return 结果
     */
    @Override
    public int deleteExpirationReminderSetupByExpirationReminderSetupId(Long expirationReminderSetupId)
    {
        return expirationReminderSetupMapper.deleteExpirationReminderSetupByExpirationReminderSetupId(expirationReminderSetupId);
    }
}
